<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style media="screen">
    .box{
      width: 300px;
      height: 1000px;
      overflow: scroll;
    }

    .right-box{
      position: fixed;
      right: 0px;
      width: 100px;
      height: 100%;
      color: black;
    }

    .right-box a{
      font-size: 32px
    }

    .right-box a:link{
      color: black;
    }

    .right-box a:visited{
      color: black;
    }
  </style>
</head>
<body>
  <div class="right-box">
    <a href="#id-1" data-scroll="#id-1">id-1</a>
    <a href="#id-2" data-scroll>id-2</a>
    <a href="#id-3" data-scroll>id-3</a>
    <a href="#id-4" data-scroll>id-4</a>
    <a href="#id-5" data-scroll>id-5</a>
    <a href="#id-6" data-scroll>id-6</a>
    <a href="#id-7" data-scroll>id-7</a>
    <a href="#id-8" data-scroll>id-8</a>
  </div>
  <div class='box'>
    <h1 id="id-1">1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1 id="id-2">2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1 id="id-3">3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1 id="id-4">4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1 id="id-5">5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1 id="id-6">6</h1>
    <h1>7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1 id="id-7">7</h1>
    <h1>8</h1>
    <h1>9</h1>
    <h1>10</h1>
    <h1>1</h1>
    <h1>2</h1>
    <h1>3</h1>
    <h1>4</h1>
    <h1>5</h1>
    <h1>6</h1>
    <h1>7</h1>
    <h1 id="id-8">8</h1>
    <h1>9</h1>
    <h1>10</h1>
  </div>
</body>
<script src="../dist/index.js" charset="utf-8"></script>
<script type="text/javascript">
  easyScroll.init();
  document.addEventListener('mousemove',function(e){
    console.log(e);
  });
</script>
</html>
